#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>

class FancyTabWidget;
class PageInterface;
class AbstractCore;
class TouchRun;

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    MainWindow(AbstractCore *core,QWidget *parent = 0);
    ~MainWindow();

    void addTabel(PageInterface *tabel);

    void    showIndex(int index);
public slots:
    void    projectClose();
    void    pclose();

protected slots:
    void    newProject();
    void    openProject();
    void    saveProject();
    void    enableTab();
    void    updateTitle();
    void    run();
    void    stop();

protected:
    FancyTabWidget      *m_fancyTab;
    AbstractCore        *m_core;
    QList<PageInterface*>   m_pages;
    TouchRun            *m_touchRun;
    bool                m_isRunning;
};

#endif // MAINWINDOW_H
